css: Pass boxes to the render functions
authorBenjamin Otte <otte@redhat.com>
Fri, 15 Feb 2019 05:15:50 +0000 (06:15 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 15 Feb 2019 05:53:22 +0000 (06:53 +0100)
commitc44c44ee2510415c3b796e973ac3f525e5d512b9
tree4722dc662de36d1356f1e439365fbab69883a5ff
parent7ad0f7fc525bf01b21532a98069f4b7124d65a86
css: Pass boxes to the render functions

Instead of style + rect_of_one_box, pass the new GtkCssBoxes object.
This has the nice side effect that when drawing background + border +
outline, we only compute all the boxes we need once.
gtk/gtkrenderbackground.c
gtk/gtkrenderbackgroundprivate.h
gtk/gtkrenderborder.c
gtk/gtkrenderborderprivate.h
gtk/gtksnapshot.c
gtk/gtkwidget.c